﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    enum BlacksmithType
    {
        修补,强化,打造
    }        
    class Blacksmith:NPC
    {
        private BlacksmithType btype;
        public BlacksmithType Btype
        {
            get { return this.btype; }
            set { this.btype = value; }
        }
        public Blacksmith(BlacksmithType btype, string name, NPCType type) : base(name, type)
        {
            this.btype = btype;
        }
        public override void Speak()
        {
            Console.WriteLine("我叫{0}，我属于{1}类型的NPC，我是{2}NPC，我可以{3}装备", base.Name, base.Type, this.btype, this.btype);
        }
    }
}
